using System.Windows;
using System.Windows.Controls;

namespace Waaahsabi.Controls.TheGame
{
	public class ChatMessageItem : Control
	{
		#region MessageSender DependencyProperty
		public static readonly DependencyProperty MessageSenderProperty =
		DependencyProperty.Register
			(
			"MessageSender",
			typeof(string),
			typeof(ChatMessageItem),
			new PropertyMetadata(null)
			);

		public string MessageSender
		{
			get { return (string)GetValue(MessageSenderProperty); }
			set { SetValue(MessageSenderProperty, value); }
		}
		#endregion

		
		#region MessageText DependencyProperty
		public static readonly DependencyProperty MessageTextProperty =
		DependencyProperty.Register
			(
			"MessageText",
			typeof(string),
			typeof(ChatMessageItem),
			new PropertyMetadata(null)
			);

		public string MessageText
		{
			get { return (string)GetValue(MessageTextProperty); }
			set { SetValue(MessageTextProperty, value); }
		}
		#endregion

		
		#region MessageTimestamp DependencyProperty
		public static readonly DependencyProperty MessageTimestampProperty =
		DependencyProperty.Register
			(
			"MessageTimestamp",
			typeof(string),
			typeof(ChatMessageItem),
			new PropertyMetadata(null)
			);

		public string MessageTimestamp
		{
			get { return (string)GetValue(MessageTimestampProperty); }
			set { SetValue(MessageTimestampProperty, value); }
		}
		#endregion

		public ChatMessageItem()
		{
			DefaultStyleKey = typeof (ChatMessageItem);
		}
	}
}